package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.SellDetailBean;
import com.project.bean.SellOrderBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface ISellOrderMapper extends BaseMapper<SellOrderBean> {
    public IPage<SellOrderBean> cutByItem(IPage pg,
                                          @Param("cName") String cName,
                                          @Param("startDate") LocalDate startDate,
                                          @Param("endDate") LocalDate endDate);

    public SellOrderBean findDetailByOrderId(Integer sellOrderId);

    public Integer computeSellTotal(Integer userId);

}
